package com.bupt.dto.network;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode
@Data
public class NodeDto {
    String id;
    String name;
    String code;
    double longitude;
    double latitude;
    int year;
    int completedYear;
    int serviceLength;//预计服役年限
    int capacity;//节点容量

    public NodeDto(String id, String name, String code, double longitude, double latitude, int year, int completedYear, int serviceLength,
                   int capacity) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.longitude = longitude;
        this.latitude = latitude;
        this.year = year;
        this.completedYear = completedYear;
        this.serviceLength = serviceLength;
        this.capacity = capacity;
    }
}
